package com.lianjinsu.shop.core.configuration;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Info;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class SpringdocConfiguration {

    @Bean
    OpenAPI openAPI() {
        Info info = new Info();
        info.title("Shop");
        info.description("Shop OpenAPI Information");
        info.version("1.8.0");
        OpenAPI openAPI = new OpenAPI();
        openAPI.info(info);
        return openAPI;
    }
}
